#if !defined(__APP_BLUETOOTH_H__)
#define __APP_BLUETOOTH_H__
#include "app_device.h"

typedef enum
{
    BLUETOOTH_BAUD_9600 = '4',
    BLUETOOTH_BAUD_115200 = '8',
} BluetoothBaudRate;

int app_bluetooth_exists(Device *device);

int app_bluetooth_reset(Device *device);

int app_bluetooth_setBaudRate(Device *device, BluetoothBaudRate baud_rate);

int app_bluetooth_setNetId(Device *device, char *net_id);

void app_bluetooth_postRecv(Device *device, void *ptr, int *len);

void app_bluetooth_preSend(Device *device, void *ptr, int *len);

#endif // __APP_BLUETOOTH_H__
